Skip to content

Add GLB coordinate and camera export options - #284

Merged
mahach666 merged 1 commit into
mainfrom
codex/issue-45-glb-options
Nov 20, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/issue-45-glb-options

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Changes

  • Add NwcGlbExportOptions to GLB path and stream exports for documents and assemblies, including async document exports.
  • Convert geometry and saved cameras from Z-up to Y-up when selected. Scale positions and camera clipping distances and orthographic extents by UnitScale.
  • Recenter exported mesh bounds in double precision and restore placement for geometry and cameras through a common translated root.
  • Document the options and defaults in the public API guide and changelog.

Verification

  • Checked the exact axis and unit conversion examples, position accessor bounds, rotated normals, large-coordinate precision, both camera projections, and opt-out of camera export.
  • Compared 12 GLBs byte for byte against 396772d, covering world and local exports to paths and streams, async exports, assemblies, camera-only and empty scenes. Also compared the 18,727,900-byte geometry fixture. Existing alpha mode, generator and GLB size-limit tests passed.
  • Release build and full tests passed on .NET 8 and .NET 10 (1,523 passed and 12 skipped per target). Format validation and the native core build passed.

Closes #45

@mahach666
mahach666 merged commit 8986876 into main Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLB export: add NwcGlbExportOptions for Y-up, unit scale, recentering, and write alphaMode for translucent materials

1 participant